package net.bac.sbe.common.api.view;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class SonarValidationView {

	private List<SonarItemValidationView> items;
	private Map<String, Double> indicatorGrades;


	public SonarValidationView(int itemQuantity){
		items = new ArrayList<SonarItemValidationView>(itemQuantity);
		indicatorGrades = new HashMap<String, Double>(5);
	}

	public List<SonarItemValidationView> getItems() {
		return items;
	}

	public void setItems(List<SonarItemValidationView> items) {
		this.items = items;
	}

	public Map<String, Double> getIndicatorGrades() {
		return indicatorGrades;
	}

	public void setIndicatorGrades(Map<String, Double> indicatorGrades) {
		this.indicatorGrades = indicatorGrades;
	}


	public void addItem(SonarItemValidationView pSonarItemValidationView){
		this.items.add(pSonarItemValidationView);
	}

	public void addIndicatorGrade(String indicator, Double value){
		this.indicatorGrades.put(indicator, value);
	}

	public Double getIndicatorGrade (String indicator){
		return this.indicatorGrades.get(indicator);
	}


}
